package com.guoxin.singleton.lazy;

/**
 * 懒汉式(线程不安全)
 *
 * @author guoxin
 * @date 2019/8/15
 */
public class Unsafe {
    private static Unsafe instance;

    private Unsafe() {
    }

    public static Unsafe getInstance() {
        if (instance == null) {
            instance = new Unsafe();
        }
        return instance;
    }
}
